//
//  BBTestAppView.h
//  BBTUIOTest
//
//  Created by ben smith on 8/20/08.
//  This file is part of BBTUIOTest.
//
//  BBTUIOTest is free software: you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.

//  BBTUIOTest is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Lesser General Public License for more details.

//  You should have received a copy of the GNU Lesser General Public License
//  along with BBTUIOTest.  If not, see <http://www.gnu.org/licenses/>.
// 
//  Copyright 2008 Ben Britten Smith ben@benbritten.com .
//
//


#import <Cocoa/Cocoa.h>

// this is a view that is a 'multi-touch application' which is to say it is a silly little thing
// that allows you to test out how the tracking is working
// it has also been updated so that it can go full screen and be the
// key view

@class BBScreenSelectionView;
@class BBTUIOCursor;

@interface BBTestAppView : NSView {
	NSGradient * backgroundGradient;
	NSMutableArray * cursors;
	IBOutlet BBScreenSelectionView * screenSelector;
	NSWindow * fullScreenWindow;
	NSWindow * oldWindow;
	NSRect oldFrame;
	NSRect oldWindowFrame;
	IBOutlet NSButton * fullScreenButton;
	NSDictionary *attrsDictionary;
} 

@property (copy) NSGradient* backgroundGradient;
@property (retain) NSMutableArray * cursors;
@property (retain) NSWindow * oldWindow;

- (BOOL)acceptsFirstResponder;
- (BOOL)becomeFirstResponder;
- (BOOL)canBecomeKeyView;
- (BOOL)resignFirstResponder;
- (IBAction)closeFullScreenWindow:(id)sender;;
- (IBAction)goFullScreen:(id)sender;;
- (IBAction)keyDown:(NSEvent*)theEvent;
- (id) init;
- (void)awakeFromNib;
- (void)blobCycleDone;
- (void)drawBlobEvent:(BBTUIOCursor*)cursor;
- (void)drawBlobs;
- (void)drawRect:(NSRect)rect ;
- (void)drawText:(NSString*)text centeredAtPoint:(NSPoint)p;;
- (void)setupBackgroundGradient;

// 15 methods



@end
